package com.gxuwz.attend.service.Impl;

import com.gxuwz.attend.dao.ClassesDao;
import com.gxuwz.attend.entity.Classes;
import com.gxuwz.attend.service.ClassesService;

import java.util.List;

public class ClassesServiceImpl implements ClassesService {
    private ClassesDao classesDao;

    public void setClassesDao(ClassesDao classesDao) {
        this.classesDao = classesDao;
    }

    /**
     * 添加班级数据
     * @param classes
     */
    @Override
    public void insertClass(Classes classes){
        classesDao.insertClass(classes);
    }

    /**
     * 删除班级数据
     * @param classID
     */
    @Override
    public void deleteClass(String classID){
        classesDao.deleteClass(classID);
    }

    /**
     * 更新班级数据
     * @param classes
     */
    @Override
    public void updateClass(Classes classes){
        classesDao.updateClass(classes);
    }

    /**
     * 查询全部班级数据
     * @return
     */
    @Override
    public List<Classes> queryClasses(){
        return classesDao.queryClasses();
    }

    /**
     * 模糊查询班级数据
     * @param classes
     * @return
     */
    @Override
    public List<Classes> queryClass(Classes classes){
        return classesDao.queryClass(classes);
    }
}
